package com.rj.core.type;

/**
 * 字符类型
 *
 * @author YFX_RANLUBO
 * @date 2024/09/14 16:56
 **/

public class BeanTypeHelper {
    public static <T> BeanType<T> of(String filedKey, String filedName) {
        return new BeanType(filedKey, filedName);
    }

    public static <T> BeanType<T> of(String filedKey, String filedName, Boolean allowEmpty) {
        return new BeanType(filedKey, filedName, allowEmpty);
    }
    public static <T> BeanType<T> of(String filedKey, String filedName, Boolean allowEmpty,String regexp) {
        return new BeanType(filedKey, filedName, allowEmpty,regexp);
    }
    public static <T> BeanType<T> of(String filedKey, String filedName, Boolean allowEmpty,Integer maxLength) {
        return new BeanType(filedKey, filedName, allowEmpty,maxLength);
    }
}
